<?php

namespace Home\Controller;
use Think\Controller;

//微信配置地址
class IndexController extends  BaseController {    
    /**
     * 前台控制器初始化 
     */
     function _initialize(){
       parent::_initialize();
    }
    
    //微信配置路径
    public function index(){  
	    $echoStr = isset($_GET["echostr"])?$_GET["echostr"]:$_POST['echostr']; 
	    $this->logger($echoStr."-token验证|".json_encode($this->wxconfig)); 
		if (isset($_GET['echostr'])) {  
			$this->valid($this->wxconfig);
		}else{  
		   $this->responseMsg(); 
		}   
    } 
}

?>